/*
 *  Copyright (C) 2010 Matthias Buch-Kromann <mbk.isv@cbs.dk>
 * 
 *  This file is part of the IncrementalParser package.
 *  
 *  The IncrementalParser program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General License for more details.
 * 
 *  You should have received a copy of the GNU Lesser General License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.osdtsystem.matrixparser.features;

import org.osdtsystem.matrixparser.features.keys.FeatureKey;


/**
 *
 * @author Matthias Buch-Kromann <mbk.isv@cbs.dk>
 */
public interface FeatureAggregator {
    // Features referenced by objects
    void addFeature(FeatureKey feature);
    void addFeature(FeatureKey feature, float weight);
    
    // Dereferenced features
    void addFeatureVector(FeatureVector fv);
    void addFeature(Feature feature);
    void addFeature(Feature feature, float weight);
    void addFeature(Feature feature, double weight);
    void clear();

    // Select best- or worst-scoring feature sequences
    void openOptimalFeatureSequenceSpecification(boolean maximum);
    void closeOptimalFeatureSequenceSpecification();
    boolean submitAlternativeFeatureSequence();

    // Other
    //int reserveFeatures(int count);
    void trimToSize();
}
